﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Account/theme/admin/default.master" AutoEventWireup="true" CodeBehind="defaut.aspx.cs" Inherits="cmsni.Account.orders.defaut" %>

 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     </telerik:RadAjaxManager>
 
     <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
     </telerik:RadStyleSheetManager>
     <h1>View Orders</h1>
     <br />
     <asp:EntityDataSource ID="entorders"   runat="server" ConnectionString="name=cmsnistorefrontEntities" DefaultContainerName="cmsnistorefrontEntities" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="orderheaders">
     </asp:EntityDataSource>
     <br />
     <telerik:RadGrid ID="rgorder"  ShowHeadersWhenNoRecords="True" ShowAddNewRecordButton="True"  CommandItemDisplay="Top" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateDeleteColumn="True" CellSpacing="0" DataSourceID="entorders" GridLines="None" OnItemCommand="rgorder_ItemCommand">


<ExportSettings>
<Pdf>
<PageHeader>
<LeftCell Text=""></LeftCell>

<MiddleCell Text=""></MiddleCell>

<RightCell Text=""></RightCell>
</PageHeader>

<PageFooter>
<LeftCell Text=""></LeftCell>

<MiddleCell Text=""></MiddleCell>

<RightCell Text=""></RightCell>
</PageFooter>
</Pdf>
</ExportSettings>

<MasterTableView AllowPaging="False" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="entorders" CommandItemDisplay="Top">
<CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToPdfButton="True"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="billingaddress" DataType="System.Int32" FilterControlAltText="Filter billingaddress column" HeaderText="billingaddress" SortExpression="billingaddress" UniqueName="billingaddress">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="billingaddress1" FilterControlAltText="Filter billingaddress1 column" HeaderText="billingaddress1" SortExpression="billingaddress1" UniqueName="billingaddress1">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="billingpostcode" FilterControlAltText="Filter billingpostcode column" HeaderText="billingpostcode" SortExpression="billingpostcode" UniqueName="billingpostcode">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="deliveryaddress1" FilterControlAltText="Filter deliveryaddress1 column" HeaderText="deliveryaddress1" SortExpression="deliveryaddress1" UniqueName="deliveryaddress1">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="deliverypostcode" FilterControlAltText="Filter deliverypostcode column" HeaderText="deliverypostcode" SortExpression="deliverypostcode" UniqueName="deliverypostcode">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="telephone" FilterControlAltText="Filter telephone column" HeaderText="telephone" SortExpression="telephone" UniqueName="telephone">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="emailaddress" FilterControlAltText="Filter emailaddress column" HeaderText="emailaddress" SortExpression="emailaddress" UniqueName="emailaddress">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ordertotal" DataType="System.Decimal" FilterControlAltText="Filter ordertotal column" HeaderText="ordertotal" SortExpression="ordertotal" UniqueName="ordertotal">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="subtotal" DataType="System.Decimal" FilterControlAltText="Filter subtotal column" HeaderText="subtotal" SortExpression="subtotal" UniqueName="subtotal">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="vat" DataType="System.Decimal" FilterControlAltText="Filter vat column" HeaderText="vat" SortExpression="vat" UniqueName="vat">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column">
        </telerik:GridEditCommandColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>

<BatchEditingSettings EditType="Cell"></BatchEditingSettings>

<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
</MasterTableView>

<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

<FilterMenu EnableImageSprites="False"></FilterMenu>
     </telerik:RadGrid>



</asp:Content>
